<!DOCTYPE html>
<html lang="cn">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>处理成功提醒 - 重庆上门宝网络科技有限公司</title>
    <!-- Bootstrap Core CSS -->
    <link href="/Public/sb-admin-2/bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- MetisMenu CSS -->
    <link href="/Public/sb-admin-2/bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">

    <!-- Custom CSS -->
    <link href="/Public/sb-admin-2/dist/css/sb-admin-2.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <link href="/Public/sb-admin-2/bower_components/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

</head>

<body>
<div class="container">
    <div class="row" style="padding-top: 100px;">
        <div class="col-lg-8 col-lg-offset-2">
            <div class="panel panel-danger">
                <div class="panel-heading">
                    <h3 class="panel-title">处理完成</h3>
                </div>
                <div class="panel-body">
                    <p><?PHP echo $msg;?></p><br/>
                    <p style="text-align: center;">
                       
                        <?php if($GLOBALS['PARSE_INFO']['control']=='order_details'){ ?>
                            <button onclick="location.href=document.referrer;" class="btn btn-info" type="button">查看订单</button>
                        <?php }else{ ?>
                            <button onclick="location.href=document.referrer;" class="btn btn-info" type="button">返回</button>
                        <?php } ?>
                    </p>
                </div>
            </div>
        </div>
    </div>
</div><!-- /container -->


<!-- jQuery -->
<script src="/Public/sb-admin-2/bower_components/jquery/dist/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="/Public/sb-admin-2/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>

<script>
    //window.onbeforeunload = function() {
    window.onunload = function() {
        //这里刷新方法有很多，具体要看你的子窗口是怎样出来的
        window.opener.location.reload();
        //parent.location.reload();
        //self.opener.location.reload();
        //window.opener.location.href=window.opener.location.href;
    };
</script>
</body>

</html>